<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  	<head> 
	    <title>奖品管理</title>
	    <meta http-equiv="X-UA-Compatible" content='IE=edge' />
	     <%@ include file="/inc/info.inc" %>
	     <link rel="stylesheet" type="text/css" href="css/gamePrizeAdd.css">
		<link rel='stylesheet' type="text/css" href='/fw/js/jquery/plugins/uploadify/uploadify.css' />
		<script type="text/javascript" src="/fw/js/jquery/plugins/jquery.form.min.js"></script>
		<script type="text/javascript" src="/fw/js/myjs/jvalidator.js"></script>
		<script type="text/javascript" src="/fw/js/myjs/form.validator.js"></script>
		<script type="text/javascript" src='/fw/js/jquery/plugins/uploadify/jquery.uploadify.min.js'></script>
		<script type="text/javascript" src="/fw/js/myjs/bootstrap-savehandle.js"></script>
		<script type="text/javascript" src="/fw/js/ajaxfileupload.js"></script>
		<script type="text/javascript" src="js/gamePrizeAdd.js"></script>
  	</head>
  	<body>
	 	<div id="gamePrizeAdd">
	 		<div><%@ include file="../manage/heading.jsp" %></div>
	  		<s:action name="groupmenu" executeResult="true" namespace="/groupmenu"></s:action>
	  		<div class="content">
				<div class="header">
			 		<ol class="breadcrumb">
						<li class="glyphicon glyphicon-top-right">
							<a href="#">
								<span aria-hidden="true" style="font-size:20px;">&raquo;</span>
							</a>
						</li>
						<li>
							<a href="/fw/pages/game/gamePrizeList.jsp">奖品列表</a>
						</li>
						<li class="active">添加奖品</li>
					</ol>
			 		<form id="gamePrizeAddForm" class="form-horizontal">
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">配置游戏</label>
							<select class="form-control col-5p" id="gameId" name="game.gameId">
							</select>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">奖品等级</label>
							<select class="form-control col-5p" id="level" name="level">
							</select>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">中奖概率</label>
							<input type="text" class="form-control col-5p" id="probability" name="probability"/>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">奖品类型</label>
							<select class="form-control col-5p" id="type" name="type">
								<option value="0">积分</option>
								<option value="1">红包</option>
								<option value="2">实物</option>
							</select>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">奖品名称</label>
							<input type="text" class="form-control col-5p" id="prizeName" name="prizeName"/>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">奖品内容</label>
							<input type="text" class="form-control col-5p" id="prizeRemark" name="prizeRemark"/>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label no-padding-right">奖品数量</label>
							<input type="text" class="form-control col-5p" id="prizeNum" name="prizeNum"/>
						</div>
						<div id='alertdiv'></div>
						<div class="alert alert-danger" style="display: none;"></div>
						<br/>
						<p class="col-sm-offset-3 col-sm-9">
							<button onclick="add()" type="button"  class="btn btn-primary">确定</button>
						</p>
				 	</form>
	 			</div>
		 	</div>
	 	</div> 
  	</body>
</html>
